<?php

namespace app\shop\controller\company;
use app\shop\service\company\Staff as StaffService;
/**
 * 员工管理
 */
class Staff
{
    /**
     * 员工列表
     */
    public function list(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->lists($data);
    }

    public function options(StaffService $StaffService)
    {
        return $StaffService->options();
    }

    public function save(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->save($data);
    }

    public function form(StaffService $StaffService)
    {
        $user_id = input("user_id");
        return $StaffService->form($user_id);
    }

    //设置会员
    //type 1副经理 2经理
    public function setStaff(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->setStaff($data);
    }

    //入职
    public function entry(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->entry($data);
    }

    //离职
    public function resign(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->resign($data);
    }

    public function saveFile(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->saveFile($data);
    }

    public function fileTypes(StaffService $StaffService)
    {
        return $StaffService->fileTypes();
    }

    public function delFile(StaffService $StaffService)
    {
        $id = input('id');
        return $StaffService->delFile($id);
    }

    public function files(StaffService $StaffService)
    {
        $user_id = input('user_id');
        return $StaffService->files($user_id);
    }

    public function leave(StaffService $StaffService)
    {
        $data = input();
        return $StaffService->leave($data);
    }
    
    public function leaveInfo(StaffService $StaffService){
        $user_id = input('user_id');
        return $StaffService->leaveInfo($user_id);
    }
}